/*

emuDOS Version 1.0

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
/*
This file ("ppc.c") is part of emuDOS, and serves as the PowerPC file for emuDOS.
*/
#include <stdio.h>
//#include "version.h"
//#include "registers.h"
int ppcRun(FILE *prog, int fs) {
  unsigned char pbuffer[fs/4];
  fread(pbuffer, 4, fs/4, prog);
  int offset = 0;
  while(offset != fs/4) {
    if (pbuffer[offset] == 0x38000000) { // addi instruction
      
    }
    else if (pbuffer[offset] == 0x3c000000) { // addis instruction
      
    }
    else if (pbuffer[offset] == 0x30000000) { // addic instruction
      
    }
    else if (pbuffer[offset] == 0x34000000) { // addic. instruction
      
    }
    else if (pbuffer[offset] == 0x7c000214) { // add instruction
      
    }
    else if (pbuffer[offset] == 0x7c000215) { // add. instruction
      
    }
  }
}